package com.only4play.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author liyuncong
 * @version 1.0
 * @file SignController
 * @brief 注册控制器
 * @details 注册控制器
 * @date 2023-12-12
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2023-12-12               liyuncong          Created
 */

@Controller
public class SignController extends AbstractBaseController{

    @GetMapping(value = "/signup")
    public String signup(Model model) {

        return thymeleaf("/reg");
    }

    @GetMapping(value = "/signin")
    public String signin(Model model) {

        return thymeleaf("/login");
    }

    @GetMapping(value = "/signout")
    @ResponseBody
    public String index(Model model) {

        return "signout";
    }

    @GetMapping(value = "/password_reset")
    public String password_reset(Model model) {

        return thymeleaf("/password");
    }
}
